<template>
  <div>
    <mains :title="'订单详情4'"></mains>
    <Card :bordered="false" style="width: 95%; margin: 0 auto">
      <template #title>患者信息</template>
      <div style="display: flex; width: 100%">
        <div class="left">
          <div style="display: flex; line-height: 50px; width: 100%">
            <div style="width: 100px">患者姓名</div>
            <div style="color: #000">赖向荣</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">证件类型</div>
            <div style="color: #000">身份证号</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">微信昵称</div>
            <div style="color: #000">七尾Sam</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">就诊人地址</div>
            <div style="color: #000">北京市朝阳区</div>
          </div>
        </div>
        <div class="center">
          <div style="display: flex; line-height: 50px; width: 100%">
            <div style="width: 100px">就诊卡号</div>
            <div style="color: #000">5000909000</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">证件号码</div>
            <div style="color: #000">371880199507070909</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">手机号码</div>
            <div style="color: #000">15678900988</div>
          </div>
        </div>
        <div class="right">
          <div style="display: flex; line-height: 100px; width: 100%">
            <div style="width: 100px">患者头像</div>
            <div
              style="
                margin-top: 25px;
                width: 60px;
                height: 60px;
                border-radius: 50%;
                background-color: #e5f0ff;
              "
            ></div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">关系</div>
            <div style="color: #000">本人</div>
          </div>
        </div>
      </div>
    </Card>

    <Card :bordered="false" style="width: 95%; margin: 0 auto; margin-top: 20px">
      <template #title>住院信息</template>
      <div style="display: flex; width: 100%">
        <div class="left">
          <div style="display: flex; line-height: 50px; width: 100%">
            <div style="width: 100px">住院号</div>
            <div style="color: #000">478900</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">出院时间</div>
            <div style="color: #000"></div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">开单时间</div>
            <div style="color: #000">2020/10/09 09:00:00</div>
          </div>
        </div>
        <div class="center">
          <div style="display: flex; line-height: 50px; width: 100%">
            <div style="width: 100px">住院状态</div>
            <div style="color: #000">住院中</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">院区</div>
            <div style="color: #000">北京市第一人名医院东院区</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">开单医生</div>
            <div style="color: #000">王克</div>
          </div>
        </div>
        <div class="right">
          <div style="display: flex; line-height: 50px; width: 100%">
            <div style="width: 100px">入院时间</div>
            <div style="color: #000">2020/10/09 09-00:00</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">住院科室</div>
            <div style="color: #000">综合住院部</div>
          </div>
        </div>
      </div>

      <Table border :columns="columns" :data="data" width="950"></Table>
    </Card>

    <Card :bordered="false" style="width: 95%; margin: 0 auto; margin-top: 20px">
      <template #title>订单信息</template>
      <div style="display: flex; width: 100%">
        <div class="left">
          <div style="display: flex; line-height: 50px; width: 100%">
            <div style="width: 100px">订单总额</div>
            <div style="color: #000">600.00（元）</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">订单状态</div>
            <div style="color: #000">已支付</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">结算医生</div>
            <div style="color: #000">林元</div>
          </div>
        </div>
        <div class="center">
          <div style="display: flex; line-height: 50px; width: 100%">
            <div style="width: 100px">支付方式</div>
            <div style="color: #000">住院预留金扣费</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">订单编号</div>
            <div style="color: #000">ZY2020081900098</div>
          </div>
        </div>
        <div class="right">
          <div style="display: flex; line-height: 50px; width: 100%">
            <div style="width: 100px">押金余额</div>
            <div style="color: #000">2000.00（元）</div>
          </div>
          <div style="display: flex; line-height: 50px">
            <div style="width: 100px">结算时间</div>
            <div style="color: #000">2020-12-12 10:09:09</div>
          </div>
        </div>
      </div>

      <div style="display: flex; line-height: 50px">
        <div style="width: 100px">订单备注</div>
        <Input v-model="value" placeholder="请输入内容" style="width: 500px; margin-top: 10px" />
      </div>

      <div class="btn">
        <Button style="margin-right: 20px" class="btnn" type="primary">保存</Button>
        <Button class="btnn" type="primary">取消</Button>
      </div>
    </Card>
  </div>
</template>

<script setup>
import mains from '@/components/main.vue'
import { ref } from 'vue'
const columns = ref([
  {
    title: '序号',
    key: 'serialnumber',
    align: 'center',
    width: '80',
  },
  {
    title: '项目类别',
    key: 'category',
    align: 'center',
    width: '150',
  },

  {
    title: '项目名称',
    key: 'name',
    align: 'center',
    minwidth: '250',
  },
  {
    title: '单价（元）',
    key: 'price',
    align: 'center',
    width: '150',
  },
  {
    title: '数量',
    key: 'number',
    align: 'center',
    width: '150',
  },
  {
    title: '小计（元）',
    key: 'subtotal',
    align: 'center',
    width: '150',
  },
])

const data = ref([
  {
    serialnumber: '1',
    category: '西药费',
    name: '普罗考拉片',
    price: '50.00',
    number: '2',
    subtotal: '100.00',
  },
  {
    serialnumber: '2',
    category: '西药费',
    name: '普罗考拉片',
    price: '50.00',
    number: '2',
    subtotal: '100.00',
  },
  {
    serialnumber: '3',
    category: '西药费',
    name: '普罗考拉片',
    price: '50.00',
    number: '2',
    subtotal: '100.00',
  },
  {
    serialnumber: '4',
    category: '西药费',
    name: '普罗考拉片',
    price: '50.00',
    number: '2',
    subtotal: '100.00',
  },
])
</script>

<style scoped lang="scss">
:deep(.ivu-card-head) {
  background-color: #f2f2f2;
  color: #006eff;
  font-weight: 600;
}
.left {
  width: 30%;
}
.center {
  width: 30%;
}
.right {
  width: 30%;
}
.btn {
  margin-left: 100px;
  margin-top: 70px;
  .btnn {
    width: 100px;
    height: 40px;
  }
}
// .ivu-table{
//   width:500px;
// }
</style>
